package com.dliu.javadesign.structure.facade;

/**
 * @author yanglei
 * date 2021/3/31 18:10
 */
public class DeliveryFacade {
    private final YuanTong yuanTong;
    private final ShenTong shenTong;
    private final JinDong jinDong;

    public DeliveryFacade(){
        yuanTong = new YuanTong();
        shenTong = new ShenTong();
        jinDong = new JinDong();
    }

    public void ytSend(){
        yuanTong.send();
    }

    public void stSend(){
        shenTong.send();
    }

    public void jdSend(){
        jinDong.send();
    }

    public static void main(String[] args) {
        DeliveryFacade facade = new DeliveryFacade();
        facade.ytSend();
        facade.jdSend();
    }
}
